#pragma once

#include "cocos2d.h"
class SpriteDistance:public cocos2d::CCSprite
{
public:
	SpriteDistance(void);
	~SpriteDistance(void);
	static SpriteDistance *node();
	bool init();
	void addDistance(float fAddDistance);
	float getDistance();
private:
	void updateText();
	enum TAG{TAG_TEXT};
	bool initText();
	float fDistance_;
};
